-
Notifications
You must be signed in to change notification settings - Fork 105
Add tooltip for "Required Crafts" with shift #810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tooltip for "Required Crafts" with shift #810
Conversation
559ff8d to
7245ad6
Compare
| nei.bookmark.crafting_chain.missing=Missing Items | ||
| nei.bookmark.crafting_chain.output=Results | ||
| nei.bookmark.crafting_chain.remainder=Remainders | ||
| nei.bookmark.crafting_chain.needed=Required Crafts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the name :)
| if (this.lastShiftKey) { | ||
| for (Map.Entry<BookmarkItem, Long> item : this.math.requiredAmount.entrySet()) { | ||
| if (item.getKey().type == BookmarkItem.BookmarkItemType.RESULT && item.getValue() != 0) | ||
| craftingNeeded.add(item.getKey().getItemStack(item.getValue())); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since I'm not familiar with this code base I'm unsure if this is the best way to do it, would also want to sort the entries in some kind of order, like most "furthest" away craft is sorted earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could probably use toposort to do that
|
@slprime can you help here or review it ? |

resolves #656 by adding a new tooltip on shift that displays what items you need to craft